import request from '@/request'

const BASE_URL = '/api/node-computer'

export function findByPage(query = {}) {
  return request({
    url: `${BASE_URL}/findByPage`,
    method: 'get',
    params: query
  })
}

export function create(data) {
  return request({
    url: `${BASE_URL}`,
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: `${BASE_URL}/${id}`,
    method: 'delete',
  })
}

export function put(id, data) {
  return request({
    url: `${BASE_URL}/${id}`,
    method: 'put',
    data
  })
}

